﻿using RBAC_Uthorization.API.DTO.Request.Fun;

namespace RBAC_Uthorization.API.DTO.Request.Menu
{
    public class MenuCreateDto
    {
        /// <summary>
        /// 父菜单ID，一级菜单为0
        /// </summary>
        public int parent_id { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string menu_name { get; set; }
        /// <summary>
        /// 菜单URL
        /// </summary>
        public string menu_url { get; set; }
        /// <summary>
        /// 授权(多个用逗号分隔，如：user:list,user:create)
        /// </summary>
        public string perms { get; set; }
        /// <summary>
        /// 类型   0：目录   1：菜单   2：按钮
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? menu_icon { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int order_num { get; set; } = 0;

        public List<FunCreateDto>? Button { get; set; }
}
}
